<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" href="<?php echo $this->path;?>style/global.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->path;?>style/reg.css" type="text/css" />
<script src="/statics/js/jquery.min.js"></script>
<script src="/statics/js/jquery.form.js"></script>
<script src="/statics/js/zhuayi.js"></script>
<script>
$(function(){

	$("#form1").submit(function(data){
		$("#reg").attr('disabled',true).val('正在注册...');
		ajax($("#form1"),reg);
		return false;
	})
	
})

function reg(data)
{
	
	var data=eval("("+data+")");
		
	if (data['code_en'] == '-1')
	{
		$(".reg_tips").html(data['code_cn']);
		$("#reg").attr('disabled',false).val('注册');
		return false;
	}
	else if (data['code_en'] == '1')
	{
		tb_ps('注册成功!,激活邮件已发至您的邮箱！',data['code_cn'],'请查看您的邮件，点击连接激活您的帐号！');
	}
	
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="/member/reg_info">
	<div class="member_reg">
		<h1 class="title top10">注册名必须为邮箱</h2>
		<p class="auto"><input type="text" class="input" value="请输入邮箱" name="username" title="请输入邮箱" onclick="replace(this)" onblur="replace(this)"/></p>
		<p class="auto"><input type="text" class="input" value="请输入密码" title="请输入密码" name="password" onclick="replace(this)" onblur="replace(this)"/></p>
		<p class="auto"><input type="text" class="input" value="请确认密码" title="请确认密码" name="password2" onclick="replace(this)" onblur="replace(this)"/></p>
		<p class="auto"><input type="checkbox" name="terms" value="1" checked /> 我同意<a href="#">服务条款</a></p>
		<p class="auto"><input type="Submit" value="注册" class="button_blue"  id="reg"/> <span class="reg_tips"></span></p>
	</div>
</form>
</body>
</html>